package idea_template;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.Scanner;

public class MainTpIn {

    static String txtRootPath;
    static String packagePath;

    static String className;
    static String txtName;
    static String txtSuffix;

    static {

        className = Thread.currentThread().getStackTrace()[1].getClassName();
        String[] tempArray = processPackageFile(className);

        txtRootPath = "txt_files/";
        packagePath = tempArray[0];
        txtName = tempArray[1];
        txtSuffix = "_input.txt";
    }

    static String[] processPackageFile(String pathFile)
    {
        pathFile = pathFile.replace('.','/');
        int lastIndex = pathFile.lastIndexOf("/");

        String packagePath = pathFile.substring(0,lastIndex+1);
        String txtName = pathFile.substring(lastIndex+1);

        return new String[]{packagePath, txtName};
    }

    public static void main(String[] args) throws Exception{
        System.setIn(new BufferedInputStream(new FileInputStream( txtRootPath + packagePath + txtName + txtSuffix)));

        Scanner cin = new Scanner(new BufferedInputStream(System.in));
        int num;
        while(cin.hasNext())
        {
            num = cin.nextInt();
            System.out.println(num);
        }

    }


}
